import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const homeRoute: AppRouteModule = {
  path: '/user',
  name: 'user',
  component: LAYOUT,
  redirect: '/user/register',
  meta: {
    orderNo: 90001,
    icon: 'ph:user',
    roles: ['/user'],
    title: t('routes.user.user'),
  },
  children: [
    // {
    //   path: 'register',
    //   name: 'Register',
    //   component: () => import('@/views/user/register/index.vue'),
    //   meta: {
    //     roles: ['/user/register'],
    //     title: t('routes.user.register'),
    //   },
    // },
    // {
    //   path: 'trade',
    //   name: 'Trade',
    //   component: () => import('@/views/user/trade/index.vue'),
    //   meta: {
    //     roles: ['/user/trade'],
    //     title: t('routes.user.trade'),
    //   },
    // },
    {
      path: 'user',
      name: 'UserList',
      component: () => import('@/views/user/user/index.vue'),
      meta: {
        roles: ['/user/user'],
        title: t('routes.user.userList'),
      },
    },
  ],
};

export default homeRoute;
